//
// Created by Wirano on 2020/11/9.
//

#ifndef INCLUDE_H
#define INCLUDE_H

#include "stm32f4xx.h"
#include "Ano_FcData.h"
#include "Ano_Scheduler.h"
#include "BSP_Init.h"
#include "Ano_DT.h"
#include "Ano_Parameter.h"
#include "Ano_USB.h"
#include "Drv_time.h"
#include "Nizhou_drv_RC.h"
#include "Drv_Usart.h"


//================系统===================
#define HW_TYPE	05
#define HW_VER	1
#define SOFT_VER 17
#define BL_VER	0
#define PT_VER	400


#define ANO_DT_USE_USART2 				//开启串口2数传功能
//=======================================
/***************中断优先级******************/
//#define NVIC_GROUP NVIC_PriorityGroup_3		//中断分组选择
//
//#define NVIC_PWMIN_P			1			//接收机采集中断配置
//#define NVIC_PWMIN_S			0
//
//#define NVIC_TIME_P       2					//定时器中断配置，暂未使用
//#define NVIC_TIME_S       1
//
//#define NVIC_UART6_P				4			//串口5中断配置
//#define NVIC_UART6_S				1
//
//#define NVIC_UART5_P				4			//串口5中断配置
//#define NVIC_UART5_S				1
//
//#define NVIC_UART4_P			2			//串口4中断配置
//#define NVIC_UART4_S			1
//
//#define NVIC_UART2_P			2			//串口2中断配置
//#define NVIC_UART2_S			0
//
//#define NVIC_UART1_P			3			//串口1中断配置 //gps
//#define NVIC_UART1_S			0
/***********************************************/
//================传感器===================
//以下为板载各个传感器的使能引脚配置
#define ICM20602_CS_RCC		RCC_AHB1Periph_GPIOD
#define ICM20602_CS_GPIO	GPIOD
#define ICM20602_CS_PIN		GPIO_PIN_0
#define AK8975_CS_RCC		RCC_AHB1Periph_GPIOC
#define AK8975_CS_GPIO		GPIOC
#define AK8975_CS_PIN		GPIO_PIN_10
#define SPL06_CS_RCC		RCC_AHB1Periph_GPIOC
#define SPL06_CS_GPIO		GPIOC
#define SPL06_CS_PIN		GPIO_PIN_11


//=========================================
#endif //INCLUDE_H
